import java.util.Arrays;

public class Test2<T> {
    public static void main(String[] args) {
        Test2<Float> test2 = getInstance(1.2f);
        System.out.println(test2.t);

        String str = "1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001000000000000000000009000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
        char[] chars = str.toCharArray();
        chars[201] = '2';
        chars[202] = '2';
        StringBuilder builder = new StringBuilder();
        for (char c : chars){
            builder.append(c);
        }
        System.out.println(builder);
    }

    public Test2(T t) {
        this.t = t;
    }

    T t;

    public void setData(T data) {
        t = data;
    }

    public static <R extends Number> Test2<R> getInstance(R a) {
        return new Test2<>(a);
    }
}
